<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>悦动科技表单验证</title>
    <style>
        body {
            margin: 0px;
            padding: 0px;
        }
        .mainBg {
            width: 400px;
        }
		.xxxxdiv{
			display: inline-block;
		}
		form label{
			display: inline-block;
			width: 100px;
			position: relative;
			margin: auto;
			background-color:red;
			bottom: 35px;
		}
		form{
			height: 100px;
			background-color: sienna;
		}
    </style>
</head>

<body>
    <div class="mainBg">
        <form action="#" method="get" onsubmit="return checkInputName(this)">
			<label>名称: </label>
			<div class="xxxxdiv">
			<input type="text" name="fname" />
			<p class="tips">必填, 长度为4~16个字符</p>
		   </div>
            <input type="submit" value="验证" />
		</form>
	</div>
	<span title="abcdfefefe">这是我第一个网页</span>
</body>
</html>